const path = require('path')
function resolve(dir) {
    return path.join(__dirname, dir)
}
module.exports = {
    configureWebpack: {
        externals: {
          'AMap': 'AMap',
          'AMapUI': 'AMapUI'
           }
      },
    lintOnSave: true,
    chainWebpack: config => {
        config.resolve.alias
            .set('@', resolve('src'))
            .set('assets', resolve('src/assets'))
            .set('components', resolve('src/components'))
            .set('layout', resolve('src/layout'))
            .set('excel', '../src/excel')
    },
    transpileDependencies: [
        'vue-echarts',
        'resize-detector'
      ],
}
